package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

// 攻略点评业务
public interface IStrateCommentService {
    // 查询所有用户对当前攻略的点评
    List<StrategyComment> queryStrateCommentByStrategyId(Long strategyId);

    List<StrategyComment> queryStrategyCommentsByStrategyIdAndState(Long strategyId, Integer state);

    StrategyComment getStrategyCommentById(Long id);

    Long save(StrategyComment strategyComment);
    /**
     * 查询攻略评论的分页数据
     *
     * @param qo 分页查询条件
     */
    PageInfo query(StrategyCommentQueryObject qo);

    void update(StrategyComment strategyComment);

}
